package com.bing.bean;

import com.bing.bean.weixin.MsgType;
import com.bing.bean.weixin.Article;
import com.bing.utils.StringDataAdapter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.List;

/**
 * Created by kaibb on 2014/11/29.
 */
@Service
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class TestValue {
    @Value("${weixin.appid}")
    private String AppId;

    @Value("${weixin.appsecret}")
    @XmlJavaTypeAdapter(StringDataAdapter.class)
    private String appsecret;

    private MsgType MsgType;


    private List<Article> Articles;
    private TestEL testEL;

    public List<Article> getArticles() {
        return Articles;
    }

    public void setArticles(List<Article> articles) {
        Articles = articles;
    }

    public String getAppId() {
        return AppId;
    }

    public void setAppId(String appId) {
        this.AppId = appId;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public MsgType getMsgType() {
        return MsgType;
    }

    public void setMsgType(MsgType msgType) {
        MsgType = msgType;
    }

    public TestEL getTestEL() {
        return testEL;
    }

    public void setTestEL(TestEL testEL) {
        this.testEL = testEL;
    }
}
